package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author 张永远
 * @since 2020-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_rakuten_package")
public class OrderRakutenPackageDo extends Model<OrderRakutenPackageDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "basket_id", type = IdType.INPUT)
    private Long basketId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 送料
     */
    @TableField("postage_price")
    private Integer postagePrice;

    /**
     * 送料税率
     */
    @TableField("postage_tax_rate")
    private Integer postageTaxRate;

    /**
     * 代引料
     */
    @TableField("delivery_price")
    private Integer deliveryPrice;

    /**
     * 代引料税率
     */
    @TableField("delivery_tax_rate")
    private Integer deliveryTaxRate;

    /**
     * 商品税合计
     */
    @TableField("goods_tax")
    private Integer goodsTax;

    /**
     * 商品合計金額
     */
    @TableField("goods_price")
    private Integer goodsPrice;

    /**
     * 合計金額
     */
    @TableField("total_price")
    private Integer totalPrice;

    /**
     * 包裹是否被删除
     */
    @TableField("package_delete_flag")
    private Integer packageDeleteFlag;

    /**
     * 收货人邮编
     */
    @TableField("order_post_code")
    private String orderPostCode;

    /**
     * 收货人都道府県
     */
    @TableField("order_prefecture")
    private String orderPrefecture;

    /**
     * 收货人郡市区
     */
    @TableField("order_city")
    private String orderCity;

    /**
     * 收货人住所
     */
    @TableField("order_sub_addres")
    private String orderSubAddres;

    /**
     * 收货人姓名
     */
    @TableField("order_name")
    private String orderName;

    /**
     * 收货人姓通假
     */
    @TableField("order_family_name_kana")
    private String orderFamilyNameKana;

    /**
     * 收货人名通假
     */
    @TableField("order_first_name_kana")
    private String orderFirstNameKana;

    /**
     * 收货人人电话
     */
    @TableField("order_phone_number")
    private String orderPhoneNumber;

    /**
     * 是否離島  1 离岛
     */
    @TableField("isolated_island_flag")
    private Integer isolatedIslandFlag;

    @TableField("default_delivery_company_code")
    private String defaultDeliveryCompanyCode;

    @Override
    protected Serializable pkVal() {
        return this.basketId;
    }

}
